﻿using D.Medicalcare.Domain.Entities;
using D.Medicalcare.ErrorCode;
using MediatR;

namespace D.Medicalcare.Write.API.Application.Commands.PatientCommand
{
    /// <summary>
    /// 添加就诊人命令
    /// </summary>
    public class CreatePatientCommand:IRequest<APIResult<object>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int PatientId { get; set; }
        /// <summary>
        /// 关系
        /// </summary>
        public string? Impact { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? PatientName { get; set; }
        /// <summary>
        /// 证件类型
        /// </summary>
        public string? DocumentType { get; set; }
        /// <summary>
        /// 证件号码（身份证号）
        /// </summary>
        public string? DocumentNo { get; set; }
        /// <summary>
        /// 就诊卡号
        /// </summary>
        public string? PatientNo { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 就诊人地址（选填）
        /// </summary>
        public string? Address { get; set; }
        /// <summary>
        /// 设为默认就诊人
        /// </summary>
        public bool IsDefault { get; set; }
        /// <summary>
        /// 绑定Id
        /// </summary>
        public int ParentId { get; set; }
    }
}
